package com.fanyouzhao.ehome.dao.impl;

import com.fanyouzhao.ehome.dao.AdminDao;
import com.fanyouzhao.ehome.dao.BaseDao;
import com.fanyouzhao.ehome.entity.Admin;

/**
 * @Author: fanyouzhao
 * @Date: 14:54 2021/5/8
 */
public class AdminDaoImpl extends BaseDao<Admin> implements AdminDao {

    @Override
    public Integer update(Integer id, Admin admin) throws Exception {
        return super.update(id, admin);// 返回影响的行数
    }

    @Override
    public Admin selectById(Integer id) throws Exception {
        return super.selectById(id, Admin.class);
    }

    @Override
    public Admin selectByName(String name) throws Exception {
        return super.selectByName(name,Admin.class);
    }

    @Override
    public Admin selectByPhone(String phone) throws Exception {
        return super.selectByPhone(phone,Admin.class);
    }
}
